package com.lwl.modules.sys.entity;

/**
 * Created by markeluo on 2017/7/25.
 */

import com.lwl.common.validator.group.AddGroup;
import com.lwl.common.validator.group.UpdateGroup;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;

/**
 * 系统租户
 * @author markeluo
 * @email luowanli88@gmail.com
 * @date 2017年7月25日 下午18:02:55
 */
public class SysTenantEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //租户id
    private long tenantId;
    //租户编号
    @NotBlank(message="租户编号不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String tenantNo;
    //租户邮箱
    @NotBlank(message="租户邮箱不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String tenantEmail;
    //租户(公司)名称
    @NotBlank(message="租户名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String tenantName;
    //租户(公司)地址
    private String tenantAddress;
    //租户联系电话
    private String tenantTel;
    //创建时间
    private String createTime;
    //最后修改时间
    private String lastUptime;
    //激活状态：1：已激活 2：未激活
    private String activeState;
    //激活时间
    private String activedTime;
    //失效时间
    private String abateTime;

    /**
     * 租户ID-get
     * @return
     */
    public long getTenantId() {
        return tenantId;
    }

    /**
     * 租户id-set
     * @param tenantId
     */
    public void setTenantId(long tenantId) {
        this.tenantId = tenantId;
    }

    /**
     * 租户编号
     * @return
     */
    public String getTenantNo() {
        return tenantNo;
    }
    /**
     * 租户编号
     * @return
     */
    public void setTenantNo(String tenantNo) {
        this.tenantNo = tenantNo;
    }

    /**
     * 租户名称
     * @return
     */
    public String getTenantName() {
        return tenantName;
    }

    /**
     * 租户名称
     * @param tenantName
     */
    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }

    /**
     * 租户地址
     * @return
     */
    public String getTenantAddress() {
        return tenantAddress;
    }
    /**
     * 租户地址
     * @return
     */
    public void setTenantAddress(String tenantAddress) {
        this.tenantAddress = tenantAddress;
    }
    /**
     * 租户电话
     * @return
     */
    public String getTenantTel() {
        return tenantTel;
    }
    /**
     * 租户电话
     * @return
     */
    public void setTenantTel(String tenantTel) {
        this.tenantTel = tenantTel;
    }

    /**
     * 创建时间
     * @return
     */
    public String getCreateTime() {
        return createTime;
    }
    /**
     * 创建时间
     * @return
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    /**
     * 最后修改时间
     * @return
     */
    public String getLastUptime() {
        return lastUptime;
    }
    /**
     * 最后修改时间
     * @return
     */
    public void setLastUptime(String lastUptime) {
        this.lastUptime = lastUptime;
    }

    /**
     * 激活状态
     * @return
     */
    public String getActiveState() {
        return activeState;
    }
    /**
     * 激活状态
     * @return
     */
    public void setActiveState(String activeState) {
        this.activeState = activeState;
    }

    /**
     * 激活时间
     * @return
     */
    public String getActivedTime() {
        return activedTime;
    }
    /**
     * 激活时间
     * @return
     */
    public void setActivedTime(String activedTime) {
        this.activedTime = activedTime;
    }

    /**
     * 失效时间
     * @return
     */
    public String getAbateTime() {
        return abateTime;
    }

    public void setAbateTime(String abateTime) {
        this.abateTime = abateTime;
    }

    /**
     * 邮箱
     * @return
     */
    public String getTenantEmail() {
        return tenantEmail;
    }
    /**
     * 邮箱
     * @return
     */
    public void setTenantEmail(String tenantEmail) {
        this.tenantEmail = tenantEmail;
    }

    @Override
    public String toString() {
        return "SysTenantEntity{" +
                "tenantId=" + tenantId +
                ", tenantNo='" + tenantNo + '\'' +
                ", tenantEmail='" + tenantEmail + '\'' +
                ", tenantName='" + tenantName + '\'' +
                ", tenantAddress='" + tenantAddress + '\'' +
                ", tenantTel='" + tenantTel + '\'' +
                ", createTime='" + createTime + '\'' +
                ", lastUptime='" + lastUptime + '\'' +
                ", activeState='" + activeState + '\'' +
                ", activedTime='" + activedTime + '\'' +
                ", abateTime='" + abateTime + '\'' +
                '}';
    }
}
